package com.neutech.controller;

import com.neutech.entity.SysAdmin;
import com.neutech.service.SysAdminService;
import com.neutech.service.impl.SysAdminServiceImpl;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 管理员表 前端控制器
 * </p>
 *
 * @author wangyu
 * @since 2025-06-11
 */
@RestController
@RequestMapping("/sysAdmin")
public class SysAdminController {
    @Resource
    SysAdminService sysAdminService;

    @GetMapping("/list")
    boolean list() {
        SysAdmin sysAdmin = new SysAdmin();
        sysAdmin.setId(1);
        sysAdmin.setName("二狗");
        sysAdmin.setPhone("13512345679");
        sysAdmin.setPassword("12345");

        return sysAdminService.updateById(sysAdmin);
    }
}
